﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace NJL.WebUsers.Controls
{
    public partial class WUCVisitorSpaceLeftLastVisitor : BaseUserControl
    {
        private readonly NJL.BLL.NJL_REG_PERSON_VISIT bllPersonVisit = new BLL.NJL_REG_PERSON_VISIT();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataSet ds = bllPersonVisit.GetList(6, "a.NJL_PERSON_ID='" + Request.QueryString["uid"] + "'", "a.CREATE_DATE_TIME desc");
                if (ds.Tables[0].Rows.Count > 0)
                {
                    rptLogUser.DataSource = ds;
                    rptLogUser.DataBind();
                }
            }
        }
    }
}